package cn.hunter.repository;

import cn.hunter.dataobject.OrderMaster;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 功能描述: 订单主表Dao
 * <p>
 * 作者: luohongquan
 * 日期: 2018/5/4 0004 13:41
 */
public interface OrderMasterRepository extends JpaRepository<OrderMaster, String> {

    /**
     * 根据买家openid查询订单分页列表
     */
    Page<OrderMaster> findByBuyerOpenid(String buyerOpenid, Pageable pageable);
}
